package com.jinbai.view_object;

import com.jinbai.data_object.UserDO;
import lombok.Data;

import java.sql.ResultSet;

@Data
public class UserVO {
    private Integer uid;
    private String username;

    public UserVO(UserDO userDO) {
        this.uid = userDO.getUid();
        this.username = userDO.getUsername();
    }

    public UserVO(int uid, String username) {
        this.uid = uid;
        this.username = username;
    }
}
